<?php


class searchrule_misc_task extends base_task_abstract implements base_interface_task{
    public function exec($params=null) {
	    $this->clear_cart_objects();
    }

    
    private function clear_cart_objects()
    {
        $sql = "DELETE FROM " . DB_PREFIX . "search_detla WHERE last_modify<time()-86400 and index_name='b2c_goods'";
        app::get('b2c')->model('cart_objects')->db->exec( $sql );
    }//End Function

}
